<?php 
    $aTitle = array();
    $aId    = array();
?>
<div class="protfolio" id="ourworks">
    <?php 

    if ( isset(qvaCore::$qvaOptions['ourwork']['title']) || isset(qvaCore::$qvaOptions['ourwork']['short_description']) || isset(qvaCore::$qvaOptions['ourwork']['description']) ) : 
            if (  !empty(qvaCore::$qvaOptions['ourwork']['title']) || !empty(qvaCore::$qvaOptions['ourwork']['short_description']) || !empty(qvaCore::$qvaOptions['ourwork']['description']) ) :
        
    ?>
    <div class="heading">
        <div class="container">
            <?php  isset(qvaCore::$qvaOptions['ourwork']['title']) && !empty(qvaCore::$qvaOptions['ourwork']['title'])  ?  printf(__(stripslashes('<h2>%s</h2>'), QVA_LANG), qvaCore::$qvaOptions['ourwork']['title']) : ""; ?>
            <?php  isset(qvaCore::$qvaOptions['ourwork']['short_description']) && !empty(qvaCore::$qvaOptions['ourwork']['short_description'])  ?   printf(__(stripslashes('<h3>%s</h3>'), QVA_LANG), qvaCore::$qvaOptions['ourwork']['short_description'])  : ""; ?>
            <?php  isset(qvaCore::$qvaOptions['ourwork']['description'])  && !empty(qvaCore::$qvaOptions['ourwork']['description']) ?   printf(__(stripslashes('<p>%s</p>'), QVA_LANG), qvaCore::$qvaOptions['ourwork']['description'])  : ""; ?>
        </div>
    </div>
    <?php 
    endif;endif;
        // if ( isset(Wo_core::$qvaOptions['ourwork']['section2_content']) && !empty(Wo_core::$qvaOptions['ourwork']['section2_content']) ) : 
        //   $ourworkId = Wo_core::$qvaOptions['ourwork']['section2_content'];

        //   $args = array( 'post_type'=>'wo_ourwork', 'tax_query'=>array( array('taxonomy'=>'wo_ourwork_cat', 'field'=>'term_id', 'terms'=>$ourworkId) ) );

        //   $ourworkQuery = new WP_Query($args);

        //   while ($ourworkQuery->have_posts()) : $ourworkQuery->the_post();
        //     $aId[] = $post->ID;
        //     $aTitle[] = $post->post_title;
        //   endwhile;wp_reset_postdata();  
    ?>
    <div class="row">
        <div class="portfolioFilter">
            <ul>
                <?php qva_create_nav_filters(); ?>
            </ul>
        </div>
        <ul class="portfolioContainer row">
            <?php
                qva_show_gallery();
            ?>
        </ul>
    </div>
</div>

